<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>住院押金管理</title>
</head>
<body>
	<div class="easyui-panel"
		data-options="fit:true,border:false,onOpen:fuzzyInitDeposit">
		<div class="easyui-tabs" border="false"
			style="width: 100%; height: 100%;">
			<div title="押金管理">
				<div id="search_deposit">
					<select class="easyui-combobox" id="fuzzyFinddeposit_Status"
						data-options="width:'8%',panelHeight:'auto'">
						<option value="已缴">已缴押金</option>
						<option value="未缴">未缴押金</option>
						<option value="已退">已退押金</option>
					</select> <input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFinddeposit_afterTime" data-options="width:'10%'">
					至 <input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFinddeposit_beforeTime"
						data-options="width:'15%',buttonIcon:'icon-search',
				onClickButton:fuzzysearchDeposit,buttonText:'搜索'">
				</div>
				<table class="easyui-datagrid" style="font-size: 12px;"
					id="fuzzyFinddeposit_Table"
					data-options="singleSelect:true,fitColumns: true, nowrap: false,
					fit:true,pagination:true,pageList: [15],pageSize: 15,
					toolbar:'#search_deposit',border:false
				">
					<thead>
						<tr>
							<th data-options="field:'depositid2',width:70,align:'center'">押金单号</th>
							<th data-options="field:'patientname5',width:50,align:'center'">病人姓名</th>
							<th data-options="field:'liveoffice4',width:50,align:'center'">科室</th>
							<th data-options="field:'liveid5',width:50,align:'center'">住院号</th>
							<th data-options="field:'taketime',width:70,align:'center'">入院时间</th>
							<th data-options="field:'depositlimit4',width:45,align:'center'">押金额度</th>
							<th data-options="field:'takelimit',width:45,align:'center'">实收额度</th>
							<th data-options="field:'depositstatus',width:60,align:'center'">押金状态</th>
							<th data-options="field:'takeadmin',width:60,align:'center'">经办人</th>
							<th
								data-options="field:'caozuo',width:150,formatter:DepositHandle,align:'center'">操作</th>
						</tr>
					</thead>
				</table>
			</div>
			<div title="退费查询">
			
			<div id="search_Retuendeposit">
					<input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFindReturndeposit_afterTime" data-options="width:'10%'">
					至 <input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFindReturndeposit_beforeTime"
						data-options="width:'15%',buttonIcon:'icon-search',
				onClickButton:fuzzyqueryReturnDeposit,buttonText:'搜索'">
				</div>
				<table class="easyui-datagrid" style="font-size: 12px;"
					id="fuzzyFindRetuendeposit_Table"
					data-options="singleSelect:true,fitColumns: true, nowrap: false,
					fit:true,pagination:true,pageList: [15],pageSize: 15,
					toolbar:'#search_Retuendeposit',border:false
				">
					<thead>
						<tr>
							<th data-options="field:'depositreturnid',width:70,align:'center'">退费单号</th>
							<th data-options="field:'depositid',width:50,align:'center'">押金号</th>
							<th data-options="field:'depositlimit',width:50,align:'center'">押金金额</th>
							<th data-options="field:'liveid4',width:50,align:'center'">住院号</th>
							<th data-options="field:'patientname4',width:70,align:'center'">病人姓名</th>
							<th data-options="field:'returnamount',width:45,align:'center'">退还金额</th>
							<th data-options="field:'returntime',width:45,align:'center'">退还时间</th>
							<th data-options="field:'admin',width:60,align:'center'">经办人</th>
						</tr>
					</thead>
				</table>
				

			</div>
			<div title="催缴查询">
			
			
			
			<div id="search_Urgedeposit">
					<input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFindUrgedeposit_afterTime" data-options="width:'10%'">
					至 <input prompt="入院时间" class="easyui-datebox"
						id="fuzzyFindUrgeposit_beforeTime"
						data-options="width:'15%',buttonIcon:'icon-search',
				onClickButton:fuzzyqueryUrgeDeposit,buttonText:'搜索'">
				</div>
				<table class="easyui-datagrid" style="font-size: 12px;"
					id="fuzzyFindUrgedeposit_Table"
					data-options="singleSelect:true,fitColumns: true, nowrap: false,
					fit:true,pagination:true,pageList: [15],pageSize: 15,
					toolbar:'#search_Urgedeposit',border:false
				">
					<thead>
						<tr>
							<th data-options="field:'depositurgeid',width:70,align:'center'">催缴单号</th>
							<th data-options="field:'depositurgedate',width:50,align:'center'">催缴日期</th>
							<th data-options="field:'depositlimit4',width:50,align:'center'">押金金额</th>
							<th data-options="field:'depositurgelimit',width:50,align:'center'">催缴金额</th>
							<th data-options="field:'patientname5',width:70,align:'center'">病人姓名</th>
							<th data-options="field:'limitdate',width:45,align:'center'">限缴日期</th>
							<th data-options="field:'liveid5',width:45,align:'center'">住院号</th>
							<th data-options="field:'liveoffice4',width:45,align:'center'">科室</th>
							<th data-options="field:'admin4',width:60,align:'center'">经办人</th>
						</tr>
					</thead>
				</table>


				
			</div>
		</div>

		<div id="windowchargeDeposit" class="easyui-window" title="押金收取"
			data-options="collapsible:false,minimizable:false,maximizable:false,
		modal:true,iconCls:'icon-add',closed:true"
			style="width: 400px; height: 300px; padding: 2px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center',href:'to_hspt_charge_deposit'"
					style="padding: 1px;"></div>

				<div data-options="region:'south',border:false"
					style="text-align: right; padding: 5px 0 0;">
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-save', plain:true"
						href="javascript:void(0)" onclick="onSubmitchargeDepositForm()">提交</a>
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-cancel', plain:true"
						href="javascript:void(0)"
						onclick="javascript: $('#windowchargeDeposit').window('close');$('#chargeDepositForm').form('reset');">取消</a>
				</div>
			</div>
		</div>

		<div id="windowReturnDeposit" class="easyui-window" title="退还押金"
			data-options="collapsible:false,minimizable:false,maximizable:false,
		modal:true,iconCls:'icon-add',closed:true,onOpen:initReturnDepositID"
			style="width: 800px; height: 300px; padding: 2px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center',href:'to_hspt_return_deposit'"
					style="padding: 1px;"></div>

				<div data-options="region:'south',border:false"
					style="text-align: right; padding: 5px 0 0;">
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-save', plain:true"
						href="javascript:void(0)" onclick="onSubmitReturnDepositFrom()">提交</a>
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-cancel', plain:true"
						href="javascript:void(0)"
						onclick="javascript: $('#windowReturnDeposit').window('close');$('#returnDepositForm').form('reset');">取消</a>
				</div>
			</div>
		</div>

		<div id="windowUrgeDeposit" class="easyui-window" title="催收押金"
			data-options="collapsible:false,minimizable:false,maximizable:false,
		modal:true,iconCls:'icon-add',closed:true,onOpen:initUrgeDepositID"
			style="width: 800px; height: 300px; padding: 2px;">
			<div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center',href:'to_hspt_deposit_urge'"
					style="padding: 1px;"></div>

				<div data-options="region:'south',border:false"
					style="text-align: right; padding: 5px 0 0;">
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-save', plain:true"
						href="javascript:void(0)" onclick="onSubmitUrgeDepositForm()">提交</a>
					<a class="easyui-linkbutton"
						data-options="iconCls:'icon-cancel', plain:true"
						href="javascript:void(0)"
						onclick="javascript: $('#windowUrgeDeposit').window('close');$('#UrgeDepositForm').form('reset');">取消</a>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			//押金操作按钮
			var DepositHandle = function(value, row, index) {
				var btn1 = "<input onclick='chargeDeposit("
						+ index
						+ ")'  class='deposit_manage_bt'  type='button' value='收取押金'>";
				var btn2 = "<input onclick='returnDeposit("
						+ index
						+ ")'   class='deposit_manage_bt'  type='button' value='退还押金'>";
				var btn3 = "<input onclick='urgeDeposit("
						+ index
						+ ")'  class='deposit_manage_bt'  type='button' value='催收押金'>";
				return btn1 + btn2 + btn3;
			}
		</script>
		<style type="text/css">
.deposit_manage_bt {
	margin: 2px 8px 2px 0px;
	height:25px;
	border-radius: 3px;
	font-size: 14px;
	border: 1px #3366FF solid;
	background: #3399FF;
	color: white;
}
</style>
</body>
</html>